<%@page pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>

	<body>
		<h1>
			TestGenericTag
		</h1>
		<p>
			<s:debug />
		</p>
		<h2>
			Value Stack Contents:
			<s:property value="name" />
		</h2>
		<h2>
			In Context no #:
			<s:property value="#date" />
		</h2>

		<h2>
			In Context add #:
			<s:property value="date" />
		</h2>

		<h2>
			In Context String #:
			<s:property value="#tts" />
		</h2>

		<h2>
			In Context String no #:
			<s:property value="tts" />
		</h2>

		<h2>
			In Context request:
			<s:property value="#request['struts.valueStack']" />
		</h2>
		<h4>
			<%
				out.println(request.getAttribute("struts.valueStack"));
			%>
		</h4>

		<s:if test="name=='看看'">
			<h2>
				这里的属性不写任何值,他取的是栈顶的对象
				<s:property />
				<br>
				<s:property value="name" escape="false" />
				真的
				<s:property value="name.toUpperCase()" />
			</h2>
		</s:if>
		<s:else>
			<h2>
				假的
			</h2>
		</s:else>
		<hr>
		<s:debug />
		<table style="border-left-width: 250">
			<s:iterator value="testMap" var="ees" status="st">
				<tr>
					<td>
						index:
						<s:property value="#st.index" />
					</td>
					<td>
						key:
						<s:property value="key" />
					</td>
					<td>
						value:
						<s:property value="value" />
					</td>
				</tr>
			</s:iterator>
		</table>
		<hr>
		<p>
			<s:iterator value="new int[100]" status="b">
				<s:property value="#b.count" />
			</s:iterator>
		</p>


	</body>



</html>